const prodPluins=[]
// 如果是生产环境去除日志，如果开发环境打印日志
// if(process.env.NODE_ENV === 'development'){
if(process.env.NODE_ENV === 'production'){
  prodPluins.push('transform-remove-console')
}

module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ],
  plugins: [
    [
      'component',
      {
        libraryName: 'element-ui',
        styleLibraryName: 'theme-chalk'
      }
    ],
    ...prodPluins,
    "@babel/plugin-syntax-dynamic-import"
  ]
}
